package com.proxy.demo03;

import com.proxy.demo02.GamePlayer;
import com.proxy.demo02.IGamePlayer;

/**
 * 使用游戏代练代理模式
 */
public class Client {
    public static void main(String[] args) {
        IGamePlayer player = new GamePlayer("张三");
        IGamePlayer proxy = new GamePlayerProxy(player);
        proxy.login("zs","111111");
        proxy.killBoss();
        proxy.upgrade();
    }
}
